#include <iostream>

using namespace std;

template <typename T1, typename T2> 
class Point {
    private:
        T1 x;
        T2 y;

    public:
        Point(T1 x, T2 y): x(x), y(y) {}
        void show() const;
};

template <typename T1, typename T2> 
void Point<T1, T2>::show() const
{
    cout << "x:" << x << endl;
    cout << "y:" << y << endl;
}

int main(void)
{
    Point<int, int> p1(2, 3);
    Point<const char *, const char *> p2("东经180度", "北纬30度");
    Point<int, float> p3(2, 3.4);

    p1.show();
    p2.show();
    p3.show();

    
    return 0;
}

